package com.shuiyun.chat.entity.message;

import com.shuiyun.chat.enums.MessageType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @program: chatServer
 * @description: 简单聊天消息
 * @author: shuiyun
 * @create: 2021-05-13 00:25
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SimpleChatMessage extends Message{

    private String src;

    private String to;

    private String message;

    @Override
    public int getMessageType() {
        return MessageType.SIMPLE_CHAT_MESSAGE.getType();
    }
}
